package cn.dust.design.pattern.behavioral.templatemethod;

/**
 * @Author: dust
 * @Date: 2019/11/27 17:54
 */
public class FECourse extends ACourse{

    private boolean needWriteArticles=false;

    public FECourse(boolean needWriteArticles) {
        this.needWriteArticles = needWriteArticles;
    }

    @Override
    void packageCourse() {
        System.out.println("提供课程的前端代码");
        System.out.println("提供图片等多媒体素材");
    }

    public void setNeedWriteArticles(boolean needWriteArticles) {
        this.needWriteArticles = needWriteArticles;
    }

    @Override
    protected boolean needWriteArticle() {
        return this.needWriteArticles;
    }
}
